﻿using Microsoft.AspNetCore.Mvc;
using 自定义依赖注入.Controllers.Services;

namespace 自动依赖注入.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private readonly ITestServices _testServices;
        public TestController(ITestServices testServices)
        {
            _testServices= testServices;
        }

        [HttpGet]
        public int Get123() => _testServices.return123();
    }
}
